package com.ruoyi.testing.service.impl;

import com.ruoyi.testing.domain.EmploymentPeople;
import com.ruoyi.testing.mapper.EmploymentPeopleMapper;
import com.ruoyi.testing.service.IEmploymentPeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 告知书人员信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-17
 */
@Service
public class EmploymentPeopleServiceImpl implements IEmploymentPeopleService
{
    @Autowired
    private EmploymentPeopleMapper employmentPeopleMapper;

    /**
     * 查询告知书人员信息
     * 
     * @param gzsryId 告知书人员信息主键
     * @return 告知书人员信息
     */
    @Override
    public EmploymentPeople selectEmploymentPeopleByGzsryId(Long gzsryId)
    {
        return employmentPeopleMapper.selectEmploymentPeopleByGzsryId(gzsryId);
    }

    /**
     * 查询告知书人员信息列表
     * 
     * @param employmentPeople 告知书人员信息
     * @return 告知书人员信息
     */
    @Override
    public List<EmploymentPeople> selectEmploymentPeopleList(EmploymentPeople employmentPeople)
    {
        return employmentPeopleMapper.selectEmploymentPeopleList(employmentPeople);
    }

    /**
     * 新增告知书人员信息
     * 
     * @param employmentPeople 告知书人员信息
     * @return 结果
     */
    @Override
    public int insertEmploymentPeople(EmploymentPeople employmentPeople)
    {
        return employmentPeopleMapper.insertEmploymentPeople(employmentPeople);
    }

    /**
     * 修改告知书人员信息
     * 
     * @param employmentPeople 告知书人员信息
     * @return 结果
     */
    @Override
    public int updateEmploymentPeople(EmploymentPeople employmentPeople)
    {
        return employmentPeopleMapper.updateEmploymentPeople(employmentPeople);
    }

    /**
     * 批量删除告知书人员信息
     * 
     * @param gzsryIds 需要删除的告知书人员信息主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentPeopleByGzsryIds(Long[] gzsryIds)
    {
        return employmentPeopleMapper.deleteEmploymentPeopleByGzsryIds(gzsryIds);
    }

    /**
     * 删除告知书人员信息信息
     * 
     * @param gzsryId 告知书人员信息主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentPeopleByGzsryId(Long gzsryId)
    {
        return employmentPeopleMapper.deleteEmploymentPeopleByGzsryId(gzsryId);
    }

    /**
     * 根据告知单id查询信息
     *
     * @param gzsId
     */
    @Override
    public List<EmploymentPeople> selectEmploymentPeopleByGzsId(Long gzsId) {
        return employmentPeopleMapper.selectEmploymentPeopleByGzsId(gzsId);
    }

    /**
     * 批量新增人员信息
     *
     * @param employmentPeoples
     */
    @Override
    public int insertEmploymentPeoples(List<EmploymentPeople> employmentPeoples) {
        return employmentPeopleMapper.insertEmploymentPeoples(employmentPeoples);
    }

    /**
     * 根据通知书id删除
     *
     * @param gzsId
     */
    @Override
    public int deleteEmploymentPeopleByGzsId(Long gzsId) {
        return employmentPeopleMapper.deleteEmploymentPeopleByGzsId(gzsId);
    }
}
